package com.sinosoft.sinopay.service.payrules.entry.facade;

import com.sinosoft.sinocloud.platform.base.SinoBaseService;
import com.sinosoft.sinocloud.platform.common.exception.biz.IllegalRequestException;
import com.sinosoft.sinopay.payrules.config.ENUM_IP_BIZTYPE;
import com.sinosoft.sinopay.payrules.config.ENUM_IP_SECURITYLIST;
import com.sinosoft.sinopay.payrules.facade.SecurityListFacadeService;
import com.sinosoft.sinopay.service.payrules.biz.service.VisitSecurityCoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【安全黑白名单微服务接口类】
 * @author chenxin
 * @version V1.0
 * @date 2016-11-23 下午3:36
 */
@Service
public class SecurityListFacadeServiceImpl extends SinoBaseService implements SecurityListFacadeService{
    @Autowired
    private VisitSecurityCoreService securityCoreService;

    @Override
    public void checkIpValid(String ip, ENUM_IP_BIZTYPE cIpBizType, ENUM_IP_SECURITYLIST cSecurityListType) throws IllegalRequestException{
        securityCoreService.checkIpValid(ip,cIpBizType,cSecurityListType);
    }

}
